package com.hefeng.wx.service.Impl;


import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hefeng.wx.domain.CustomerManualWorkOrder;
import com.hefeng.wx.domain.WxOrderDispositionResult;
import com.hefeng.wx.mapper.GasResultMapper;
import com.hefeng.wx.service.GasResultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.function.Consumer;

@DS("slave")
@Service
public class GasResultServiceImpl extends ServiceImpl<GasResultMapper, CustomerManualWorkOrder> implements GasResultService {

@Autowired
private GasResultMapper gasResultMapper;

    @Override
    public Map<String,Object> getPa(String workId) {
        Map<String,Object> dataMap=new HashMap<>();
        Map<String, Object> list = gasResultMapper.getPa(workId);
        dataMap.put("转派已完成",list);
        return dataMap;
    }

    @Override
    public Map<String,Object> getPb(String workId) {
        Map<String,Object> dataMap=new HashMap<>();
        Map<String, Object> list = gasResultMapper.getPb(workId);
        dataMap.put("转派未完成",list);
        return dataMap;
    }


}
